﻿using System.Linq;

namespace System.Collections.Generic
{
    public static class ListExt
    {
        public static List<string> Trim(this IEnumerable<string> value)
        {
            return value.Where(i => !string.IsNullOrWhiteSpace(i)).Distinct().ToList();
        }

        public static string Combine(this IEnumerable<long> value, string separator)
        {
            return value.Select(i=>i.ToString()).ToList().Combine(separator);
        }
    }
}
